home *** CD-ROM | disk | FTP | other *** search
- /* Purpose: Program searches cycledbase file and returns all
- matches in order of discovery
- Author: Donald W Millican
- Start Date : 21/09/99
- Finish Date: --/--/--
- Section: Future
- Program: CycleDBase Advanced Search program
- */
-
- /*
- *** Pre-Program History ***
- 21/09/99 : Version 0.1 : Main Window created and basic GUI structures ready
- 22/09/99 : Version 0.2 : Display Load requester
- 22/09/99 : Version 0.3 : Display file when loaded
- 23/09/99 : Version 0.4 : Menus now work
- 24/09/99 : Version 0.5 : Implement search code
- 25/09/99 : Version 0.6 : Print search results to the screen
- 26/09/99 : Version 0.7 : Results window displayed
- 26/09/99 : Version 0.8 : Results appear in window
- 26/09/99 : Version 0.9 : Bugfix and tidy up code
-
- *** Program History
- 26/09/99 : Version 1.0 : Initial Release
- */
-
- #include <exec/types.h>
- #include <clib/dos_protos.h>
- #include <clib/exec_protos.h>
- #include <clib/gadtools_protos.h>
- #include <clib/graphics_protos.h>
- #include <clib/intuition_protos.h>
- #include <graphics/gfxmacros.h>
- #include <graphics/GfxBase.h>
- #include <intuition/intuition.h>
- #include <intuition/IntuitionBase.h>
- #include <libraries/gadtools.h>
- #include <string.h>
- #include <stdlib.h>
- #include <stdio.h>
-
- #include "Search.c"
-
- /*
- ** Open all libraries and run. Clean up when finished or on error..
- */
- void main()
- {
- if (NULL == (IntuitionBase = OpenLibrary("intuition.library", 37)))
- {
- EasyRequest(NULL, &nointuition, NULL);
- }
- else
- {
- if (NULL == (GfxBase = OpenLibrary("graphics.library", 37)))
- {
- EasyRequest(NULL, &nographics, NULL);
- }
- else
- {
- if (NULL == (GadToolsBase = OpenLibrary("gadtools.library", 37)))
- {
- EasyRequest(NULL, &nogadtools, NULL);
- }
- else
- {
- searchwindow();
-
- CloseLibrary(GadToolsBase);
- }
- CloseLibrary(GfxBase);
- }
- CloseLibrary(IntuitionBase);
- }
- }
-
-